<?php
include 'database.php'; //数据库的配置信息
require 'lianjie.php';  // 数据库的操作函数
$mac = $_GET['mac'];
$con = lianjieshujuku($servername,$name,$passwd);//连接数据库
if(!mysqli_select_db($con,'flower'))
{
    die("选择数据库失败");
}
$req = mysqli_query($con,"select * from `fname` WHERE  `mac` = '$mac'");
//print_r($req);
$m = mysqli_fetch_array($req);
echo ($m['atname']);